<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOphthalmologyFundusChangeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('st_ophthalmology_fundus_change', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('record_id')->comment('病例id');
            $table->string('left_quadrant',20)->comment('左眼象限数');
            $table->string('left_pathological_changes',20)->comment('左眼病变数');
            $table->string('right_quadrant',20)->comment('右眼象限数');
            $table->string('right_pathological_changes',20)->comment('右眼病变数');
            $table->unsignedTinyInteger('status')->default(0)->comment('状态 0无 1有');
            $table->unsignedTinyInteger('project_type')->default(1)->comment('项目类型 1微血管瘤 2出血 3渗出 4视网膜内微血管异常 5视网膜静脉串珠样改变 6新生血管');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('st_ophthalmology_fundus_change');
    }
}
